<?php

/**
 * breedable_core_load_page_titles()
 *
 * Load the WPEC page titles
 *
 * @global array $breedable_page_titles
 */
function breedable_core_load_page_titles()
{
	//
}

/**
 * Update Notice
 *
 * Displays an update message below the auto-upgrade link in the WordPress admin
 * to notify users that they should check the upgrade information and changelog
 * before upgrading in case they need to may updates to their theme files.
 *
 * @package wp-e-commerce
 * @since 3.7.6.1
 */
function breedable_update_notice() {
	$info_title = __( 'Please backup your website before updating!', 'breedable' );
	$info_text =  __( 'Before updating please backup your database and files in case anything goes wrong.', 'breedable' );
	echo '<div style="border-top:1px solid #CCC; margin-top:3px; padding-top:3px; font-weight:normal;"><strong style="color:#CC0000">' . strip_tags( $info_title ) . '</strong> ' . strip_tags( $info_text, '<br><a><strong><em><span>' ) . '</div>';
}

function breedable_in_plugin_update_message() {
	add_action( 'in_plugin_update_message-' . BREEDABLE_DIR_NAME . '/wp-shopping-cart.php', 'breedable_update_notice' );
}

if ( is_admin() )
{
	add_action( 'init', 'breedable_in_plugin_update_message' );
}

function breedable_remove_post_type_thumbnail_support() {
	remove_post_type_support( 'post', 'thumbnail' );
	remove_post_type_support( 'page', 'thumbnail' );
}

